package com.kehongborui.ticket.controller;

import com.kehongborui.ticket.entity.User;
import com.kehongborui.ticket.model.ResultModel;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-08-14
 */
@Controller
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/reg")
public class RegController {
//    @PostMapping

    @ResponseBody
    @RequestMapping
    public ResultModel reg(User user) {
        System.out.println(user);
        return new ResultModel();
    }

    @ResponseBody
    @GetMapping("/r")
    public Boolean bool() {
        return false;
    }
}
